Repository navigation
Conversation
Project metadata advisoryThis advisory summarizes source-project metadata for project entries added or changed by this PR.
License is read from GitHub SPDX metadata when available, and the last commit and Lean version are read from the source repository's default branch. |
|
Advisory cross-file review against Lean Pool's supervisory rubric. This is not by itself a significance, source-verification, or merge verdict. [Medium impact] No blocking issue was identified in the documentation-only follow-up; this does not clear the entire import for merging. SummaryImports finite-dimensional quantum information, including Uhlmann fidelity, the Holevo bound, Schumacher compression, and product-state capacity.
Reviews (4) · Last reviewed commit: "Clarify the HSW capacity supremum and te..." · Reviewed by Greptile |
Vilin97
left a comment
There was a problem hiding this comment.
The core import is substantive. Please revise the trace-distance headline and the capacity documentation at 91fcc8ca.
- The Uhlmann, Holevo, Schumacher and product-state capacity statements check out. They include the attained purification overlap, the entropy bound for arbitrary finite ensembles and measurements, the off-threshold compression equivalence, and the common operational capacity with a joint measurement and vanishing maximum error. I found no matching endpoints in the pinned dependencies or the pool.
- The pool already proves trace-distance contraction for positive trace-preserving maps, even between different finite matrix sizes. The imported theorem packages the same result for the project's CPTP state API. Keep that local interface and credit the existing result in the supporting description. Remove it from the card's headline declarations and synchronize the generated entry-point docstring. Existing stronger matrix result
- In
Core/ChannelHolevoChi.lean, the formula for an arbitrary state map should take the entropy of the mixture of its output states and say supremum. Moving the map outside the mixture requires the channel hypothesis. The actual definition already takes the output mixture. - The pinned license, source credits, modification notices and upstream NOTICE are present. I verified that the revised circuit budget requires a structural wire reindexing for free transport. The abstract entropy and partial-trace layers overlap with matrix results in Tau Ceti. The reused matrix APIs and the new endpoints support retaining this development, with further consolidation treated as maintenance.
There was a problem hiding this comment.
Approve — finite-dimensional quantum information
Faithfulness
Postulates/QSystem.leanandPostulates/StateSpace.leanbuild finite-dimensional complex systems and trace-one positive operators.Postulates/API/QuantumChannel.leandefines the channel hypothesis using a completely positive trace-preserving linear extension.NC/Ch9/Theorem2.leanobtains Kraus positivity from that hypothesis and proves trace-distance contraction.NC/Ch9/Theorem4.leanproves an attained greatest absolute purification overlap, with both marginals recovered byreducedLeft. The fidelity convention matches that overlap.NC/Ch12/Theorem1.leanbounds the mutual information of the finite Born-rule joint distribution by the input ensemble's entropy difference. The proof goes through the classical–quantum mutual information identity and monotonicity under discarding.NC/Ch12/Theorem6.leangives both directions at a nonnegative rate away from the threshold.QuantumDataCompression.leanencodes the dimension budget and requires entanglement fidelity to converge to one for the tensor-power source.NC/Ch12/Theorem8.leanproves both inequalities for the supremal Holevo quantity and product-state coding capacity.ProductStateCode.leanapplies the state map separately at each position, uses a joint POVM decoder, and measures maximum error. The card describes precisely this independent-use model.
Novelty and significance
The operator-theory and state APIs let later projects reuse finite tensor products, reduction and purification, completely positive maps, measurements, and entropy inequalities in one model. The existing Tau Ceti strong-subadditivity result is stated for matrices. This port uses an intrinsic Hilbert-space formulation in the closure needed for the entropy results and omits the duplicate chapter entry. It also omits the existing Pool Knill–Laflamme headline and imports matching spectral and trace lemmas from the pinned Tau Ceti dependency.
Sources and provenance
The pinned repository provides the actual proofs and Apache-2.0 license. File authors and the upstream NOTICE are retained. The December arXiv paper describes the proof library and its AI-written content, together with the human-written postulate layer. The September benchmark describes a distinct artifact and says the benchmark solutions were private. The project card cites the specific textbook theorems and records the mathematical scope of the corresponding Lean statements. Release paper · Benchmark paper · Textbook
Engineering
Reviewed the upstream-to-port mapping for every retained file and compared non-comment changes in bounded directory groups. Inspected the channel trace-norm proof, the relative-entropy limit and partial-trace path, the typical-subspace compression arguments, and the coding converse and achievability. All proof-bearing imported files retain their upstream attribution. The removed chapter files simply re-exported retained declarations.
The repaired gate model in Core/CircuitBudget.lean requires an indexed IsWireReindexing e proof for free transport. Its primitives are associativity, tensor symmetry, tensor-power splits and fixed computational-basis encodings. The tower and Barenco witnesses are composed from those primitives. The local regression check exercised the former unrestricted constructor call and the new certified one, and checked the Barenco layer, tower-wire, CNOT fan and Pauli diagonalization bounds.
The local audit compared 663 upstream file mappings, with 61 files containing non-comment changes beyond packaging, option removal and import edits. The declaration linter and compiled audits covered all 665 Lean modules. Direct #print axioms calls returned propext, Classical.choice, and Quot.sound for each of the five card declarations. The local per-file gate recorded all 665 build times, including retained receipts for artifacts reused after the review repair. The slowest file took 26 seconds.
The clean builds used identical pinned dependencies. The full CPU comparison was 2,427.97 s before and 2,332.76 s after optimization. Elapsed time was 457.94 s and 505.68 s under the paired runs' fixed CPU affinity. In the single-file paired profile, the Hilbert–Schmidt proof reduced typeclass inference to about one second per run, from 6.91–8.63 seconds. The final Greptile check reported no further finding within its coverage. Both earlier threads were addressed on the repaired head.
GitHub validation
This review covers head 91fcc8ca44038333ee12a7cf590ea3c764bfec31. The required Build project and content separation checks passed. The Lean run completed compilation, declaration lint, text style, and repository quality checks successfully. The Python, workflow, exposition, and documentation preflight checks took their path-based skips. The advisory proof profile is still running. Lean Actions run
|
/review Please review |
Proof profile (new / modified Lean files)
This build covers the changed modules and their dependency cones on top of the restored cache. The serial per-file sums below are useful for ranking slow files, not as a build budget. Total heartbeats: 28,916,238 maxHeartbeats units across 646 valid files (123,783 added LOC). Sum of Count-heartbeats wall-clock total: 3631.35 s. Repeated import cost inside Heartbeat values sum disjoint root command traces with LOC counts added lines in the profiled Lean files from this PR diff.
Aggregate phase totals
Slowest changed modules (from
|
| Changed module | Lake time |
|---|---|
LeanPool.AxQM.ToMathlib.Analysis.InnerProductSpace.LiebConcavityTrace |
25.00 s |
LeanPool.AxQM.ToMathlib.Analysis.InnerProductSpace.QuantumRelativeEntropy |
23.00 s |
LeanPool.AxQM.Postulates.API.TensorPowSplit |
22.00 s |
LeanPool.AxQM.Postulates.API.Associator |
21.00 s |
LeanPool.AxQM.ToMathlib.Analysis.InnerProductSpace.GeneralizedRelativeEntropy |
20.00 s |
LeanPool.AxQM.Concrete.BlochPureState |
19.00 s |
LeanPool.AxQM.ToMathlib.Analysis.InnerProductSpace.CFCTensor |
18.00 s |
LeanPool.AxQM.ToMathlib.Analysis.InnerProductSpace.LiebConcavityRpow |
18.00 s |
LeanPool.AxQM.ToMathlib.Analysis.InnerProductSpace.QuantumRelativeEntropyMonotone |
18.00 s |
LeanPool.AxQM.ToMathlib.Analysis.InnerProductSpace.PartialTraceAbstract |
17.00 s |
LeanPool.AxQM.ToMathlib.Analysis.Normed.Algebra.LieTrotter |
15.00 s |
LeanPool.AxQM.ToMathlib.Analysis.InnerProductSpace.OperatorSum |
14.00 s |
Comment truncated to fit GitHub's 64 KB limit. This PR profiles 665 files; the per-file table shows only the 425 hottest by heartbeats. The full table and raw
lean --profileoutput for every file are in the run's step summary andproof-profileartifact.
Advisory only — never blocks merge.
🤖 LLM review (
|
| Rubric | Verdict | Bottom line |
|---|---|---|
| Faithfulness | ✅ pass |
All four Lean headlines establish the claims on the project card. |
| Novelty | ✅ pass |
The supplied Mathlib and Tau Ceti comparisons were unverifiable, and direct source searches across Mathlib, Tau Ceti, and Lean Pool found no duplicate of the four retained headlines. |
| Significance | ✅ pass |
The completed coding theorems and reusable operator theory justify pooling, and lake exe mk_all --module regenerates the 672-line import index (0.54% of added Lean) from module paths. |
| Sources | 🛑 block |
Correct the claim that the product-state capacity is attained and qualify the remaining references to Nielsen and Chuang’s equation (12.71) for arbitrary state maps. |
| Code quality (advisory) | flag |
Parallel Clifford synthesis proofs, Barenco-specific dependencies in the generic budget module, and duplicated entropy and tensor proofs add maintenance work across the library. |
| Aspect | Value |
|---|---|
| Proves the claim | ✅ proves_it |
| Assumed, not proved | The card describes a finite ensemble, whose weights Lean requires to be nonnegative and sum to one, and explicitly states the nonnegative rate off the entropy threshold for Schumacher compression and the existence of a state for the capacity equality. |
| Matches cited source | 🛑 mismatch |
| Fit | ✅ good_fit |
| Level | graduate |
| Branch | quantum information theory |
| Mode | theory_building |
| Code quality | 2 / 5 |
Statement check: The capacity theorem equates the supremum of output-ensemble Holevo information with the supremum of rates achievable using independent applications of the same state map, product-state inputs, and joint decoding with vanishing maximum error.
The project proves Uhlmann’s fidelity characterization, the Holevo bound, Schumacher’s source coding theorem away from the entropy threshold, and the Holevo–Schumacher–Westmoreland capacity formula for independent uses of a state map with product-state inputs and joint decoding.
Sources findings (2)
- source-mismatch —
LeanPool/AxQM/Core/ProductStateCapacity.lean:62
Nielsen and Chuang define operational capacity as a supremum, and their HSW achievability proof covers rates strictly below it. The docstring adds an attainment claim that can fail even for a binary erasure channel. Describe the capacity as a supremum andle_productStateCapacityas its upper-bound property. Nielsen and Chuang, p. 552 · HSW achievability, p. 557 · Polyanskiy, Poor and Verdú, Theorem 38
Evidence: The module attributes the model to ‘N&C p. 552’ and says ‘Boundedness makes the
supremum a genuine maximum’. The definition issSup {R | IsProductStateAchievableRate E R}, andle_productStateCapacityconcludes(hR : IsProductStateAchievableRate E R) : R ≤ productStateCapacity E :=. - unlabelled-variant —
LeanPool/AxQM/Core/ChannelHolevoChiEnsemble.lean:63
The supporting lemma still cites equation (12.71) directly for an arbitrary state map. The textbook takes a maximum and applies a trace-preserving quantum operation to the input mixture. The Lean lemma uses a supremum and mixes the outputs, which can give a different entropy for a non-affine map. Apply the card’s per-ensemble channel qualification here and to the corresponding references at lines 31 and 166 ofLeanPool/AxQM/NC/Ch12/Theorem8.lean. Nielsen and Chuang, Theorem 12.8
Evidence: The helper docstring calls the output-ensemble supremum ‘(N&C eq. (12.71))’. Its hypothesis is(E : State S → State S) {R : ℝ} (hR : R < channelHolevoChi E) :, and its conclusion ends withR < State.holevoChi p hp hsum (fun i => E (ρ i)) := by. The per-ensemble bridge istheorem holevoChi_comp_eq_of_isChannel {E : State S → State S} (hE : IsChannel E).
Code quality findings (9)
- duplicate-proof —
LeanPool/AxQM/Concrete/PauliNormalizerInduction.lean:206
The bounded and unbounded Clifford synthesis paths independently maintain the same induction, first-pair reduction, sign correction, and X and Z generator reductions. The bounded pair proof also inlines a step already proved byexists_cliffordCircuit_reduceFirstOfPair_length_le. Move the shared lemmas and length estimates below the synthesis proofs in the import graph, use the existing bounded first-step lemma, and derive the unbounded witnesses by dropping the length conjuncts.
Evidence:isPauliNormalizer_eq_smul_cliffordCircuitandPauliNormalizerGateCountSynthesis.lean:95'sisPauliNormalizer_eq_smul_cliffordCircuit_length_leboth useset B' := C'.relabel ⟨Fin.succ, Fin.succ_injective n⟩ with hB'defandunitary_eq_smul_cliffordCircuit_of_conj_generators hM.1 B' hgenX hgenZ.PauliNormalizerGateCountPair.lean:246obtains⟨C, hCp, hCsp, hClen⟩fromexists_cliffordCircuit_reduceToXGen_length_le p c hcand reproves the pivot condition already packaged byPauliNormalizerGateCountReduce.lean:307'sexists_cliffordCircuit_reduceFirstOfPair_length_le. - import-coupling —
LeanPool/AxQM/Core/CircuitBudget.lean:11
Generic budget adjoint proofs inherit 21 AxQM modules reachable only through the Barenco split-reduction import. Move the Barenco tail budget and its flattening certificate intoBarencoLayerBudgetand import the register and gate definitions directly from the generic budget module.
Evidence:public import LeanPool.AxQM.Core.BarencoSplitLinearBlockReductionsuppliesbarencoTail_pauliXGate_onLeft_eq_splitLinearToffoliBlocks k d hk (unCtrl d g)inbarencoTail_unCtrl_circuitBudget. The same file provesIsWireReindexing (AxQM.barencoBlockFlatten k d).Core/CircuitBudgetAdjoint.lean:11haspublic import LeanPool.AxQM.Core.CircuitBudget. - duplicate-constructor —
LeanPool/AxQM/Core/CircuitBudget.lean:169
The controlled-adjoint constructor adds a case to every budget induction even though the existing idle-wrap identity puts it in the ordinary controlled-gate case. MoveunCtrl_adjointalongside the idle-wrap operations and makectrlGateAdja derived theorem usingctrlGateon the adjoint gate.
Evidence:ctrlGateconcludesCircuitBudget (unCtrl n (controlledUnitary (unCtrl d g))) 0 1andctrlGateAdjconcludesCircuitBudget (unCtrl n (controlledUnitary (unCtrl d g).adjoint)) 0 1.Core/CircuitBudgetAdjoint.lean:98gives(unCtrl n E).adjoint = unCtrl n E.adjoint. Both corresponding cases inCore/CircuitBudgetOnRight.lean:118start withrw [← unCtrl_succ]. - duplicate-definition —
LeanPool/AxQM/Core/MultiControlledReduction.lean:196
The full Barenco layer and its separately budgeted tail spell out the same four-gate sequence. Define the layer throughbarencoTailso gate order is maintained in one place. The spare- and tight-register matrix reductions likewise duplicate their ABC gate-list assembly and membership proof. Factor that assembly into a shared lemma taking the phase and NOT products as inputs.
Evidence:barencoReductionCircuit_eq_mux_comp_tailprovesbarencoReductionCircuit k Vg = (mcCtrl k (Vg.onRight qubit)).comp (barencoTail k Vg)byrfl.Concrete/MultiControlledSingleQubitSpareReduction.lean:169andConcrete/MultiControlledSingleQubitTightReduction.lean:193both assembleGp ++ [singleQubitOnWire enc j A] ++ Gn ++ [singleQubitOnWire enc j B] ++ Gnfollowed by the singleton containingsingleQubitOnWire enc j C, and both userw [habc, mcCtrlSingleQubit_phase_peel enc hc hj, hPprod, hNprod]. - duplicate-proof —
LeanPool/AxQM/ToMathlib/Analysis/InnerProductSpace/PiTensorProduct.lean:312
The constant-family and dependent-family isometries maintain separate six-level tensor inductions. Prove the dependent form once and specialize it to the constant family, using the pure-tensor action equations to identify the maps if needed.
Evidence:inner_tmulEquiv_tmulEquivprovesinner 𝕜 (tmulEquiv 𝕜 M x) (tmulEquiv 𝕜 M y) = inner 𝕜 x y.inner_tmulEquivDep_tmulEquivDepat line 373 provesinner 𝕜 (tmulEquivDep 𝕜 N x) (tmulEquivDep 𝕜 N y) = inner 𝕜 x y. Both useinduction x using TensorProduct.inductionOn withandinduction xι using PiTensorProduct.induction_on with, with matching inductions for the other factors. - duplicate-proof —
LeanPool/AxQM/Postulates/API/SchumacherDirect.lean:113
The Schumacher direct proof and the chapter module each publish and prove the same typical-subspace Born-probability limit. Put the eventual lower bound and the limit in the shared typical-subspace API so compression and the chapter presentation use the same lemmas.
Evidence:State.bornProb_typicalSubspace_tendsto_oneandNC/Ch12/Theorem5.lean:126'sState.typicalSubspace_bornProb_tendsto_onetake(ρ : State S) {ε : ℝ} (hε : 0 < ε)and prove convergence offun n => (ρ.typicalSubspaceMeasurement n ε).bornProb (ρ.tensorPow n) truetonhds 1atatTop. Both begin withrw [Metric.tendsto_atTop]. - duplicate-proof —
LeanPool/AxQM/Postulates/API/EntropyConcavity.lean:103
The strict-positivity and general versions maintain separate proofs of entropy concavity and its equality case. Use the general concavity proof directly. If the pairwise equality formulation is retained, derive it from the general equality theorem and the existing mixture lemma instead of repeating the relative-entropy argument.
Evidence:State.sum_mul_vonNeumannEntropy_le_vonNeumannEntropy_mixadds(hμ : IsStrictlyPositive (State.mix p hp hsum ρ).op)to the same conclusion proved byState.sum_mul_vonNeumannEntropy_le_vonNeumannEntropy_mix'at line 231.State.vonNeumannEntropy_mix_eq_sum_iffandState.vonNeumannEntropy_mix_eq_sum_iff'both invokeFinset.sum_eq_zero_iff_of_nonneg hterm. The latter concludes↔ ∀ i, 0 < p i → ρ i = State.mix p hp hsum ρ. - duplicate-definition —
LeanPool/AxQM/NC/Ch11/Theorem16.lean:127
The conditional-entropy proof defines a second isomorphism for swapping the first two factors and then proves a composite identity already available for the shared isomorphism. UseQSystem.Iso.leftCommand its composition lemmas so the marginal rewrites share the existing register API.
Evidence:secondEntryReshapeandPostulates/API/SystemIsoComm.lean:183'sQSystem.Iso.leftCommboth return(A ⊗ (B ⊗ C)) ≃ₛ (B ⊗ (A ⊗ C))by composing the associator,((QSystem.Iso.comm A B).tmul (QSystem.Iso.refl C)), and the inverse associator. The localeACproof usesapply TensorProduct.ext'to reprove the composite handled byQSystem.Iso.leftComm_trans_comm. - unused-hypothesis —
LeanPool/AxQM/ToMathlib/Analysis/InnerProductSpace/QuantumRelativeEntropyMonotone.lean:212
The density-operator wrapper discards both normalization arguments. Its strong-subadditivity caller constructs a chain of density proofs solely to supply the second one. Call the strict-positivity theorem directly from that proof and the state-level wrapper, and remove the redundant operator-level wrapper.
Evidence:quantumRelativeEntropy_partialTraceRight_leaccepts(_hρ : ρ.IsDensityOp) (_hσ : σ.IsDensityOp)and its body isquantumRelativeEntropy_partialTraceRight_le_of_isStrictlyPositive b hρs hσs.QuantumStrongSubadditivity.lean:218callsquantumRelativeEntropy_partialTraceRight_le bG hρ''d hσ''d hρ''s hσ''s.
Tokens: 7,748,570 in / 52,282 out across 5 model calls · Tier: codex-subscription · Effort: xhigh · Billing: Codex subscription quota (no API credits) · Estimated cost: $31.7785 (Standard API equivalent; uncached input)
Each rubric is an independent review against .github/review-rubrics/ on top of .github/REVIEW_RULES.md. Disagree? Reply on the PR; rules can be updated in a PR of their own.
request_changes is an ask, not a close: of the reviewer's past request_changes verdicts, 39% were merged after a human looked. Read the findings before acting on the verdict.
Vilin97
left a comment
There was a problem hiding this comment.
Source accepted at 6010e9a0, pending required CI and importer handoff.
- The import drops the duplicate trace-distance headline and chapter wrapper. The project card, entry point and PR description now agree on the four retained results.
- The capacity theorem is labeled as an extension to arbitrary state maps. The formula uses the output mixture and reserves the textbook form for channels. The Exercise 12.11 descriptions state the supremum reductions, and the Proposition 12.14 descriptions give the pure-state scope and point to the pinned proof.
- The CNOT instruction now accepts only the three implemented directed wire pairs. The register conversion sits below the budget and QFT proof modules so the budget no longer depends on QFT correctness.
Vilin97
left a comment
There was a problem hiding this comment.
Approve — finite-dimensional quantum information
Faithfulness
NC/Ch9/Theorem4.leanproves an attained greatest absolute purification overlap, with both marginals recovered byreducedLeft. The fidelity convention matches that overlap.NC/Ch12/Theorem1.leanbounds the mutual information of the finite Born-rule joint distribution by the input ensemble's entropy difference. The proof goes through the classical–quantum mutual information identity and monotonicity under discarding.NC/Ch12/Theorem6.leangives both directions at a nonnegative rate away from the threshold.QuantumDataCompression.leanencodes the dimension budget and requires entanglement fidelity to converge to one for the tensor-power source.NC/Ch12/Theorem8.leanproves both inequalities for the supremal Holevo quantity and product-state coding capacity.ProductStateCode.leanapplies the state map separately at each position, uses a joint POVM decoder, and measures maximum error. The card describes precisely this independent-use model.
Novelty and significance
The operator-theory and state APIs let later projects reuse finite tensor products, reduction and purification, completely positive maps, measurements, and entropy inequalities in one model. The existing Tau Ceti strong-subadditivity result is stated for matrices. This port uses an intrinsic Hilbert-space formulation in the closure needed for the entropy results and omits the duplicate chapter entry. It also omits the existing Pool Knill–Laflamme headline and imports matching spectral and trace lemmas from the pinned Tau Ceti dependency.
Sources and provenance
The pinned repository provides the actual proofs and Apache-2.0 license. File authors and the upstream NOTICE are retained. The December arXiv paper describes the proof library and its AI-written content, together with the human-written postulate layer. The September benchmark describes a distinct artifact and says the benchmark solutions were private. The project card cites the specific textbook theorems and records the mathematical scope of the corresponding Lean statements. Release paper · Benchmark paper · Textbook
Engineering
Reviewed the upstream-to-port mapping for every retained file and compared non-comment changes in bounded directory groups. Inspected the channel trace-norm proof, the relative-entropy limit and partial-trace path, the typical-subspace compression arguments, and the coding converse and achievability. All proof-bearing imported files retain their upstream attribution. The removed chapter files simply re-exported retained declarations.
The repaired gate model in Core/CircuitBudget.lean requires an indexed IsWireReindexing e proof for free transport. Its primitives are associativity, tensor symmetry, tensor-power splits and fixed computational-basis encodings. The tower and Barenco witnesses are composed from those primitives. The local regression check exercised the former unrestricted constructor call and the new certified one, and checked the Barenco layer, tower-wire, CNOT fan and Pauli diagonalization bounds.
The local audit compared 662 upstream file mappings, with 63 files containing non-comment changes beyond packaging, option removal and import edits. The declaration linter and compiled audits covered all 665 Lean modules. Direct #print axioms calls returned propext, Classical.choice, and Quot.sound for each of the four card declarations. The local per-file gate recorded all 665 build times, including retained receipts for artifacts reused after the review repair. The slowest file took 26 seconds.
The clean builds used identical pinned dependencies. The full CPU comparison was 2,427.97 s before and 2,332.76 s after optimization. Elapsed time was 457.94 s and 505.68 s under the paired runs' fixed CPU affinity. In the single-file paired profile, the Hilbert–Schmidt proof reduced typeclass inference to about one second per run, from 6.91–8.63 seconds. The final Greptile check reported no further finding within its coverage. Both earlier threads were addressed on the repaired head.
Configured-review repairs
The prior novelty finding is resolved by removing the standalone trace-distance contractivity
declaration and headline. The Pool already provides the matrix contraction theorem for positive
trace-preserving maps between potentially different dimensions. The retained card covers Uhlmann
fidelity, the Holevo bound, Schumacher compression, and the state-map extension of HSW.
The HSW statement uses output mixtures for arbitrary state maps and identifies the textbook
expression under IsChannel. The limited pure-state and cardinality statements are equalities of
suprema. The LOCC documentation identifies the pure-input reduction in the pinned upstream proof
and the reduced-state measurement model used by the retained theorem. These changes address the
three scope and attribution findings.
The three-qubit CNOT alphabet now represents its three implemented directed pairs. A local Lean
check verifies the denotation of each pair. Generic circuit budgets import the extracted register
conversion independently of QFT correctness. The transitive AxQM import count of the budget module
fell from 190 to 161.
GitHub validation
The required build and content separation checks passed on head
6010e9a0d1a7db409d513cefec6eccb0417ca374. The Lean job passed compilation, declaration lint,
text style, and repository quality checks. The scoped Python, workflow, exposition, and
documentation preflight checks took their path-based skips. Lean Actions run
|
/review Please review |
Vilin97
left a comment
There was a problem hiding this comment.
Independent review approves 740ef7255e. Ready for permanent review.
Final configured review repairs
ProductStateCapacity.leannow describes operational capacity as the supremum of achievable rates andle_productStateCapacityas its upper-bound property. The achievability argument treats rates strictly below capacity.ChannelHolevoChiEnsemble.leanandNC/Ch12/Theorem8.leanexplain that arbitrary state maps use a supremum of Holevo values computed from output mixtures. They tie the per-ensemble expression in textbook equation (12.71) toIsChannelthroughholevoChi_comp_eq_of_isChannel. Nielsen and Chuang, Theorem 12.8
Validation
All three edits are to Lean documentation comments. I compared each file with the configured review's head after stripping Lean comments and checked each surrounding declaration. The full project target, generated import index, declaration lint, text style, static quality, scoped options, build messages, card declarations, and resolved-axiom audits passed locally. All four headline statements still resolve to propext, Classical.choice, and Quot.sound. The upstream scope remains 119,233 lines in 662 files.
GitHub validation passed on 740ef7255e, including the generated index, pool build, declaration lint, text style, repository quality, and content separation. CI recorded times for all 665 files, with three rebuilt on this head. The six remaining required jobs took their path-based skips. Lean CI · Content guard
The last clean build of the implementation, on 6010e9a0d1, measured 370.70 seconds wall and 2,077.08 seconds CPU. It used the same eight threads, CPU affinity, and cached dependencies as the earlier paired builds on the shared VM. The Hilbert–Schmidt module took 5.2 seconds in that run.
Remaining advisory work
The final GPT review passed faithfulness, novelty, and significance and requested the two source corrections above. Its advisory suggestions remain open. These include factoring the two Clifford synthesis paths, decoupling the generic budget from Barenco reduction, deriving the controlled-adjoint rule, sharing Barenco reduction assembly, consolidating tensor and Schumacher proofs, consolidating entropy concavity and isomorphism proofs, and removing an entropy-monotonicity wrapper with unused hypotheses. Final configured review
The configured review budget has been used. I am leaving the PR open for the permanent reviewer's decision.
Ready for review — finite-dimensional quantum information
Significance and scope
This imports the finite-dimensional quantum-information core of AxQMLib. It supplies reusable definitions and theorems for complex Hilbert systems, tensor products, density operators, partial traces, purifications, channels, POVMs, circuits, and operator entropy. The project card identifies four endpoints that use this common infrastructure. They cover Uhlmann fidelity, the Holevo bound, Schumacher source compression, and the Holevo–Schumacher–Westmoreland capacity equality.
The Schumacher equivalence covers nonnegative rates away from the entropy threshold. The capacity equality concerns product-state inputs and independent uses of a state map, with a joint decoder and maximum error tending to zero. The Lean source follows the corresponding results in Nielsen and Chuang. Textbook
Source and provenance
1bc3602193961227cad4f5fd3ae794fb584c05b6. The port retains the copyright, file authors, and the upstream NOTICE. Pinned code · LicenseThe retained scope is 119,233 upstream Lean lines in 662 files, measured at the pinned source revision with
wc -l. It follows the reusable core and the implementations supporting the selected chapter results. The exercise collection, independent exercises, generated indexes, an upstream file replaced by a Tau Ceti module, the 34 removed import-only chapter files, and the duplicate trace-distance chapter are outside the count. The port reuses pinned Tau Ceti spectral, exponential, and trace lemmas. It omits the Knill–Laflamme and strong-subadditivity chapter entries that overlap with existing Pool and Tau Ceti coverage. The intrinsic strong-subadditivity proof remains in the dependency path used by the Holevo bound.Port and optimization
fc4f59e577feb1a4956671bc04ac18aaaf8cd842, and Tau Cetiaa3cfad1274c06cff25f2b58848498b3c3f68d0f. Moved the source underLeanPool/AxQM, registered the card, and regenerated the public imports.Size reproduction
Run from the PR checkout with an upstream checkout at the pinned revision in
$upstream. The final diff supplies the file list, with the Lean Pool path prefix and chapter filename changes mapped back to upstream. The qudit register conversion was split out of the upstream QFT bridge, which is counted once.Local validation and measurements
lake build LeanPool.AxQM.Importspassed with warnings treated as errors. Generated imports, text style, the CI declaration linter, static quality, the card declarations, allowed-axiom closure, the environment option audit, and the build-message audit passed. The final compiler and environment checks covered all 665 Lean modules. The slowest file in that clean build took 26 seconds and the build stayed within the per-process memory guard.LEAN_NUM_THREADS=8. Between runs I removed just the project's Lake outputs. The warning-free baseline is commitd7576f01ceb607b690a493011d005a13ccfb41e0. On the shared VM, the full build took 344.94 s for 699 modules before optimization and 366.01 s for 665 modules afterward. The Hilbert–Schmidt module went from 25.0 s to 6.0 s in those builds.lake env lean --profile --setup=...runs, the same Hilbert–Schmidt module used 19.73 s and 16.30 s of CPU before and 4.57 s and 5.17 s after. The paired builds ran in before–after–after–before order. The project's remaining long files and the full-build timings are recorded separately from this proof improvement.LEAN_NUM_THREADS=8 /usr/bin/time -f 'WALL %e seconds; max process RSS %M kB' \ env PYTHONPATH=python python3 -m lean_pool.build_time_limits watch \ --base 9caa1b309942e8beaeb9f393cf8d2051d52b8970 -- lake build LeanPool.AxQM.ImportsReview repairs and paired builds
Commit
91fcc8ca44addresses Greptile's gate-count and chapter-reference findings. FreeCircuitBudgettransport now requires a structural wire-reindexing certificate. Existing concrete budget theorems retain their bounds. References now identify the retained modules or the corresponding pinned upstream files. The repaired project built warning-free and passed the declaration linter and compiled trust audits.Two further clean builds of the port and its optimization used the same depth of prebuilt dependencies, eight threads and CPU affinity to cores 0–7. Total CPU time fell from 2,427.97 s to 2,332.76 s (3.9%). The measured wall times were 457.94 s and 505.68 s. The repaired wire-reindexing module also compiled in the bounded project build.
Commit
6010e9a0d1addresses all four blocking findings from the configured review. It drops the standalone trace-distance contractivity theorem and headline, which duplicate Lean Pool's existing matrix contractivity result. The card and code now label the product-state capacity equality for arbitrary state maps as an extension of Theorem 12.8. The pure-state and cardinality results are stated as supremum reductions, and the LOCC documentation gives the pure-input hypothesis and credits the pinned upstream proof. Existing contractivity theoremThe three-qubit CNOT instruction now permits exactly its three implemented directed wire pairs. The qudit-to-tower register conversion lives in its own module, so generic circuit budgets can use it without importing QFT correctness. This removes 30 AxQM dependencies from the budget module and adds one for the extracted conversion.